package com.oracle.oa.util;

import java.util.ArrayList;
import java.util.List;

public class PageBean {
	private int currentPage=1;
	private int allRow;
	private int pageSize=4;
	private int totalPage;
	private List list=new ArrayList();
	
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getAllRow() {
		return allRow;
	}
	public void setAllRow(int allRow) {
		this.allRow = allRow;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return allRow%pageSize==0?allRow/pageSize:allRow/pageSize+1;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = allRow%pageSize==0?allRow/pageSize:allRow/pageSize+1;
	}
	public List getList() {
		return list;
	}
	public void setList(List list) {
		this.list = list;
	}
	
	
}
